<?php

/**
 * Application Model DbTables
 *
 * @package Application_Model
 * @subpackage DbTable
 * @author <YOUR NAME HERE>
 * @copyright ZF model generator
 * @license http://framework.zend.com/license/new-bsd     New BSD License
 */

/**
 * Table definition for participant
 *
 * @package Application_Model
 * @subpackage DbTable
 * @author <YOUR NAME HERE>
 */
class Application_Model_MonDbTable_Participant extends Application_Model_DbTable_Participant
{
	public function getParticipant($cin){
		$selector=$this->select(Zend_Db_Table::SELECT_WITH_FROM_PART);
		$selector->setIntegrityCheck(false);
		$selector->joinLeft("etablissement", "id_etab=etablissement_id_etab");
		$selector->joinLeft("role", "id_role=role_id_role");
			$selector->where('cin ='.cin);
		$rec = $this->fetchAll($selector);
		if($rec){
			return $rec;
		}else{
			return false;
		}
	
	
	 
		
	}
}
